package com.example.modulethree;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.example.baselibrary.activity.BaseNewActivity;
import com.example.baselibrary.bean.PublicViewHolder;
import com.example.modulethree.activity.KotlinMVPTestActivity;
import com.example.modulethree.activity.KotlinMVPTestFragmentActivity;
import com.example.modulethree.activity.KotlinTabHostTestActivity;
import com.example.modulethree.activity.KotlinTestActivity;

public class MainActivity extends BaseNewActivity {

    @Override
    protected int initLayoutRes() {
        return R.layout.activity_three_main;
    }

    @Override
    protected PublicViewHolder initViewHolderObject() {
        return null;
    }

    @Override
    protected void baseOnClick(int viewId) {

    }

    @Override
    protected void initView(@Nullable Bundle bundle) {
        super.initView(bundle);
        TextView textView1 = findViewById(R.id.tv_am_text_kotlin);
        textView1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, KotlinTestActivity.class);
                startActivity(intent);
            }
        });
        TextView textView2 = findViewById(R.id.tv_am_text_kotlin_mvp);
        textView2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, KotlinMVPTestActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_am_text_kotlin_mvp_fragment).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, KotlinMVPTestFragmentActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_am_text_kotlin_mvp_tabhost).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, KotlinTabHostTestActivity.class);
                startActivity(intent);
            }
        });

    }
}
